<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/appmanager/App_Expert.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/appmanager/App_Expert.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'ExpertId',
        footer: 'Foots',
        cnName: '启用图片支持',
        name: 'App_Expert',
        url: '/App_Expert/',
        sortName: 'ExpertId',
      },
      extend: extend,
      editFormFields: { ExpertName: '', Enable: '', City: '', CreateDate: '', Resume: '', HeadImageUrl: [] },
      editFormOptions: [
        [
          { title: '名称', field: 'ExpertName' },
          { dataKey: 'enable', data: [], title: '是否启用', required: true, field: 'Enable', type: 'select' },
        ],
        [
          { dataKey: 'city', data: [], title: '地区', field: 'City', type: 'select' },
          { title: '申请时间', field: 'CreateDate', disabled: true },
        ],
        [{ title: '个人简介', field: 'Resume', colSize: 12, type: 'textarea' }],
        [{ title: '头像', field: 'HeadImageUrl', type: 'imgupgrade' }],
      ],
      searchFormFields: {
        ExpertName: '',
        AuditStatus: [],
        ReallyName: '',
        IDNumber: '',
        Education: '',
        Professional: '',
        Company: '',
        City: [],
        AuditDate: '',
      },
      searchFormOptions: [
        [
          { title: '名称', field: 'ExpertName', type: 'like' },
          { title: '真实姓名', field: 'ReallyName' },
          { title: '身份证号', field: 'IDNumber' },
        ],
        [
          { title: '学历', field: 'Education', type: 'text' },
          { title: '职业', field: 'Professional' },
          { title: '所在公司', field: 'Company' },
        ],
        [
          { dataKey: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'selectList' },
          { dataKey: 'city', data: [], title: '地区', field: 'City', type: 'selectList' },
          { title: '审核时间', field: 'AuditDate', type: 'datetime' },
        ],
      ],
      columns: [
        { field: 'ExpertId', title: '主键ID', type: 'int', width: 80, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'User_Id', title: '申请人帐号Id', type: 'int', width: 90, hidden: true, align: 'left' },
        { field: 'ExpertName', title: '名称', type: 'string', link: true, width: 120, align: 'left', sortable: true },
        { field: 'HeadImageUrl', title: '头像', type: 'imgupgrade', width: 150, align: 'left' },
        { field: 'UserName', title: '帐号', type: 'string', width: 120, hidden: true, align: 'left' },
        { field: 'UserTrueName', title: '申请人', type: 'string', width: 100, hidden: true, align: 'left' },
        { field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] }, width: 120, require: true, align: 'left' },
        { field: 'Auditor', title: '审核人', type: 'string', width: 150, hidden: true, align: 'left' },
        { field: 'Enable', title: '是否启用', type: 'byte', bind: { key: 'enable', data: [] }, width: 90, require: true, align: 'left' },
        { field: 'ReallyName', title: '真实姓名', type: 'string', width: 150, hidden: true, align: 'left' },
        { field: 'IDNumber', title: '身份证号', type: 'string', width: 200, hidden: true, align: 'left' },
        { field: 'PhoneNo', title: '电话', type: 'string', width: 150, hidden: true, align: 'left' },
        { field: 'Education', title: '学历', type: 'string', width: 120, hidden: true, align: 'left' },
        { field: 'Professional', title: '职业', type: 'string', width: 120, hidden: true, align: 'left' },
        { field: 'Company', title: '所在公司', type: 'string', width: 150, hidden: true, align: 'left' },
        { field: 'City', title: '地区', type: 'string', bind: { key: 'city', data: [] }, width: 100, align: 'left' },
        { field: 'Resume', title: '个人简介', type: 'string', width: 150, align: 'left' },
        { field: 'AuditId', title: '审核人Id', type: 'int', width: 80, hidden: true, align: 'left' },
        { field: 'AuditDate', title: '审核时间', type: 'datetime', width: 135, hidden: true, align: 'left', sortable: true },
        { field: 'CreateID', title: '创建人Id', type: 'int', width: 80, hidden: true, align: 'left' },
        { field: 'Creator', title: '创建人', type: 'string', width: 130, hidden: true, align: 'left' },
        { field: 'CreateDate', title: '申请时间', type: 'datetime', width: 130, readonly: true, align: 'left', sortable: true },
        { field: 'ModifyID', title: '修改人ID', type: 'int', width: 80, hidden: true, align: 'left' },
        { field: 'Modifier', title: '修改人', type: 'string', width: 100, align: 'left' },
        { field: 'ModifyDate', title: '修改时间', type: 'datetime', width: 130, hidden: true, align: 'left', sortable: true },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
